/*
 * Copyright (c) 2013, FPX and/or its affiliates. All rights reserved.
 * Use, Copy is subject to authorized license.
 */
package com.pyip.simpleioc.load.xml;

import com.pyip.simpleioc.beans.definition.BeanDefinitionException;

/**
 * @author yepeng
 * @date 2015年11月4日
 */
public class XmlBeanDefinitionException extends BeanDefinitionException {

    private static final long serialVersionUID = 1L;

    public XmlBeanDefinitionException() {
        super();
    }

    public XmlBeanDefinitionException(String message) {
        super(message);
    }

    public XmlBeanDefinitionException(String message, Throwable cause) {
        super(message, cause);
    }

    public XmlBeanDefinitionException(Throwable cause) {
        super(cause);
    }

    protected XmlBeanDefinitionException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
    }

    /**
     * @return 返回xml错误行数, 或者返回-1
     * @see org.xml.sax.SAXParseException#getLineNumber()
     */
    /*public int getLineNumber() {
        Throwable cause = getCause();
        if (cause instanceof SAXParseException) {
            return ((SAXParseException) cause).getLineNumber();
        }
        return -1;
    }*/

}
